class Game(object):
    # 类属性
    top_score = 0

    # 实例属性
    def __init__(self, player_name):
        self.player_name = player_name

    # 静态方法
    @staticmethod
    def show_help():
        print("""
        帮助文档
        1. 开始游戏
        2. 退出游戏
        """)

    # 类方法
    @classmethod
    def show_top_score(cls):
        for i in range(10):
            cls.top_score += 100
        print("当前最高分是：%d" % cls.top_score)

    # 实例方法
    def start_game(self):
        print("%s: 开始游戏了..." % self.player_name)

if __name__ == '__main__':
    Game.show_help()
    Game.show_top_score()
    g = Game("小王")
    g.start_game()
